﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Excel;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptDoanhThuTheoSanPham : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("CboNhom")]
        private ComboBox _CboNhom;
        [AccessedThroughProperty("CmdCancel")]
        private System.Windows.Forms.Button _CmdCancel;
        [AccessedThroughProperty("CmdExel")]
        private System.Windows.Forms.Button _CmdExel;
        [AccessedThroughProperty("CmdLoad")]
        private System.Windows.Forms.Button _CmdLoad;
        [AccessedThroughProperty("Label1")]
        private System.Windows.Forms.Label _Label1;
        [AccessedThroughProperty("Label13")]
        private System.Windows.Forms.Label _Label13;
        [AccessedThroughProperty("Label16")]
        private System.Windows.Forms.Label _Label16;
        [AccessedThroughProperty("Label2")]
        private System.Windows.Forms.Label _Label2;
        [AccessedThroughProperty("Label23")]
        private System.Windows.Forms.Label _Label23;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("Panel3")]
        private Panel _Panel3;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtTongCong")]
        private C1NumericEdit _TxtTongCong;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;

        [DebuggerNonUserCode]
        public Frm_RptDoanhThuTheoSanPham()
        {
            base.Load += new EventHandler(this.Rpt_DoanhThuTheoSanPham_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdExel_Click(object sender, EventArgs e)
        {
            try
            {
                SaveFileDialog dialog = new SaveFileDialog {
                    Filter = "Excel Files|*.xls",
                    Title = "Save an Excel file"
                };
                dialog.ShowDialog();
                if (dialog.FileName != "")
                {
                    this.VSlist.SaveExcel(dialog.FileName, "DoanhThuTheoSanPham", FileFlags.IncludeFixedCells);
                    Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Workbooks.Open(dialog.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
                    Excel.Application application2 = application;
                    NewLateBinding.LateCall(application2.Rows["1:2", Missing.Value], null, "Select", new object[0], null, null, null, true);
                    NewLateBinding.LateCall(application2.Selection, null, "Insert", new object[] { -4121, 0 }, new string[] { "Shift", "CopyOrigin" }, null, null, true);
                    application2.get_Range("D1", Missing.Value).Select();
                    application2.ActiveCell.FormulaR1C1 = "DOANH THU THEO SẢN PHẨM";
                    application2.get_Range("B1:H1", Missing.Value).Select();
                    object selection = application2.Selection;
                    NewLateBinding.LateSetComplex(selection, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "VerticalAlignment", new object[] { -4107 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(selection, null, "MergeCells", new object[] { false }, null, null, false, true);
                    selection = null;
                    NewLateBinding.LateCall(application2.Selection, null, "Merge", new object[0], null, null, null, true);
                    object instance = NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null);
                    NewLateBinding.LateSetComplex(instance, null, "Name", new object[] { "Arial" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Size", new object[] { 14 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Strikethrough", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Superscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Subscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "OutlineFont", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Shadow", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "Underline", new object[] { -4142 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "ColorIndex", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(instance, null, "ThemeFont", new object[] { 0 }, null, null, false, true);
                    instance = null;
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null), null, "Bold", new object[] { true }, null, null, false, true);
                    application2.get_Range("D2", Missing.Value).Select();
                    application2.ActiveCell.FormulaR1C1 = "Từ ng\x00e0y:" + this.TxtTuNgay.Text + "  đến ng\x00e0y:" + this.TxtDenNgay.Text;
                    application2.get_Range("B2:H2", Missing.Value).Select();
                    object obj4 = application2.Selection;
                    NewLateBinding.LateSetComplex(obj4, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "VerticalAlignment", new object[] { -4107 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj4, null, "MergeCells", new object[] { false }, null, null, false, true);
                    obj4 = null;
                    NewLateBinding.LateCall(application2.Selection, null, "Merge", new object[0], null, null, null, true);
                    application2.get_Range("B1:H1", Missing.Value).Select();
                    NewLateBinding.LateSetComplex(application2.Rows["1:1", Missing.Value], null, "RowHeight", new object[] { 30 }, null, null, false, true);
                    object obj5 = application2.Selection;
                    NewLateBinding.LateSetComplex(obj5, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "VerticalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj5, null, "MergeCells", new object[] { true }, null, null, false, true);
                    obj5 = null;
                    application2.get_Range("B2:H2", Missing.Value).Select();
                    NewLateBinding.LateSetComplex(application2.Rows["2:2", Missing.Value], null, "RowHeight", new object[] { 0x15 }, null, null, false, true);
                    object obj6 = application2.Selection;
                    NewLateBinding.LateSetComplex(obj6, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "VerticalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj6, null, "MergeCells", new object[] { true }, null, null, false, true);
                    obj6 = null;
                    application2.get_Range("D7", Missing.Value).Select();
                    application2.ActiveWindow.SmallScroll(-21, Missing.Value, Missing.Value, Missing.Value);
                    application2.get_Range("G14", Missing.Value).Select();
                    application2.ActiveWindow.SmallScroll(-15, Missing.Value, Missing.Value, Missing.Value);
                    NewLateBinding.LateCall(NewLateBinding.LateGet(application2.Rows["1:1", Missing.Value], null, "EntireRow", new object[0], null, null, null), null, "AutoFit", new object[0], null, null, null, true);
                    application2.get_Range("B3:H3", Missing.Value).Select();
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null), null, "Bold", new object[] { true }, null, null, false, true);
                    application2.get_Range(RuntimeHelpers.GetObjectValue(application2.Cells[3, 1]), RuntimeHelpers.GetObjectValue(application2.Cells[this.VSlist.Rows.Count + 3, 8])).Select();
                    object obj7 = NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null);
                    NewLateBinding.LateSetComplex(obj7, null, "Name", new object[] { "Arial" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Size", new object[] { 10 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Strikethrough", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Superscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Subscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "OutlineFont", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Shadow", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "Underline", new object[] { -4142 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj7, null, "ThemeFont", new object[] { 0 }, null, null, false, true);
                    obj7 = null;
                    application2.get_Range("B3:H3", Missing.Value).Select();
                    object obj8 = application2.Selection;
                    NewLateBinding.LateSetComplex(obj8, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "VerticalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj8, null, "MergeCells", new object[] { false }, null, null, false, true);
                    obj8 = null;
                    application2.get_Range(RuntimeHelpers.GetObjectValue(application2.Cells[3, 1]), RuntimeHelpers.GetObjectValue(application2.Cells[this.VSlist.Rows.Count + 3, 8])).Select();
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 5 }, null, null, null), null, "LineStyle", new object[] { -4142 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 6 }, null, null, null), null, "LineStyle", new object[] { -4142 }, null, null, false, true);
                    object obj9 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 7 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj9, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj9, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj9, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj9, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj9 = null;
                    object obj10 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 8 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj10, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj10, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj10, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj10, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj10 = null;
                    object obj11 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 9 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj11, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj11, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj11, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj11, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj11 = null;
                    object obj12 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 10 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj12, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj12, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj12, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj12, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj12 = null;
                    object obj13 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 11 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj13, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj13, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj13, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj13, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj13 = null;
                    object obj14 = NewLateBinding.LateGet(application2.Selection, null, "Borders", new object[] { 12 }, null, null, null);
                    NewLateBinding.LateSetComplex(obj14, null, "LineStyle", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj14, null, "ColorIndex", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj14, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj14, null, "Weight", new object[] { 2 }, null, null, false, true);
                    obj14 = null;
                    int num = this.VSlist.Rows.Count + 3;
                    application2.get_Range("D" + num.ToString(), Missing.Value).Select();
                    application2.ActiveCell.FormulaR1C1 = modGeneral.Tranlated("TỔNG CỘNG", "") + ":";
                    num = this.VSlist.Rows.Count + 3;
                    application2.get_Range("H" + num.ToString(), Missing.Value).Select();
                    application2.ActiveCell.FormulaR1C1 = RuntimeHelpers.GetObjectValue(this.TxtTongCong.Value);
                    int num2 = this.VSlist.Rows.Count + 3;
                    num = this.VSlist.Rows.Count + 3;
                    application2.get_Range("A" + num2.ToString() + ":G" + num.ToString(), Missing.Value).Select();
                    object obj15 = application2.Selection;
                    NewLateBinding.LateSetComplex(obj15, null, "HorizontalAlignment", new object[] { -4108 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "VerticalAlignment", new object[] { -4107 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "WrapText", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "Orientation", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "AddIndent", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "IndentLevel", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "ShrinkToFit", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "ReadingOrder", new object[] { -5002 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj15, null, "MergeCells", new object[] { false }, null, null, false, true);
                    obj15 = null;
                    NewLateBinding.LateCall(application2.Selection, null, "Merge", new object[0], null, null, null, true);
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null), null, "Bold", new object[] { true }, null, null, false, true);
                    num2 = this.VSlist.Rows.Count + 3;
                    application2.get_Range("H" + num2.ToString(), Missing.Value).Select();
                    NewLateBinding.LateSetComplex(application2.Selection, null, "Style", new object[] { "Comma" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(application2.Selection, null, "NumberFormat", new object[] { "_(* #,##0_);_(* (#,##0);_(* \"-\"??_);_(@_)" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null), null, "Bold", new object[] { true }, null, null, false, true);
                    NewLateBinding.LateCall(application2.Rows["1:1", Missing.Value], null, "Select", new object[0], null, null, null, true);
                    application2.get_Range("B1", Missing.Value).Activate();
                    NewLateBinding.LateCall(application2.Selection, null, "Insert", new object[] { -4121, 0 }, new string[] { "Shift", "CopyOrigin" }, null, null, true);
                    NewLateBinding.LateCall(application2.Selection, null, "Insert", new object[] { -4121, 0 }, new string[] { "Shift", "CopyOrigin" }, null, null, true);
                    NewLateBinding.LateCall(application2.Selection, null, "Insert", new object[] { -4121, 0 }, new string[] { "Shift", "CopyOrigin" }, null, null, true);
                    application2.get_Range("B1", Missing.Value).Select();
                    if (modGeneral.H_LANGUAGE.Trim().ToUpper() == "VIET")
                    {
                        application2.ActiveCell.FormulaR1C1 = modGeneral.H_COMPANYNAMEVIET;
                        application2.get_Range("B2", Missing.Value).Select();
                        application2.ActiveCell.FormulaR1C1 = modGeneral.H_ADDRESSVIET;
                    }
                    else
                    {
                        application2.ActiveCell.FormulaR1C1 = modGeneral.H_COMPANYNAMEANH;
                        application2.get_Range("B2", Missing.Value).Select();
                        application2.ActiveCell.FormulaR1C1 = modGeneral.H_ADDRESSVIET;
                    }
                    application2.get_Range("B1", Missing.Value).Select();
                    object obj16 = NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null);
                    NewLateBinding.LateSetComplex(obj16, null, "Name", new object[] { "Arial" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Size", new object[] { 11 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Strikethrough", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Superscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Subscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "OutlineFont", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Shadow", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "Underline", new object[] { -4142 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "ColorIndex", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj16, null, "ThemeFont", new object[] { 0 }, null, null, false, true);
                    obj16 = null;
                    application2.get_Range("B2", Missing.Value).Select();
                    object obj17 = NewLateBinding.LateGet(application2.Selection, null, "Font", new object[0], null, null, null);
                    NewLateBinding.LateSetComplex(obj17, null, "Name", new object[] { "Arial" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Size", new object[] { 10 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Strikethrough", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Superscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Subscript", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "OutlineFont", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Shadow", new object[] { false }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "Underline", new object[] { -4142 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "ColorIndex", new object[] { 1 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "TintAndShade", new object[] { 0 }, null, null, false, true);
                    NewLateBinding.LateSetComplex(obj17, null, "ThemeFont", new object[] { 0 }, null, null, false, true);
                    obj17 = null;
                    NewLateBinding.LateCall(application2.Rows["1:2", Missing.Value], null, "Select", new object[0], null, null, null, true);
                    application2.get_Range("B1", Missing.Value).Activate();
                    NewLateBinding.LateSetComplex(application2.Selection, null, "RowHeight", new object[] { 0x12 }, null, null, false, true);
                    application2.get_Range("B3:H3", Missing.Value).Select();
                    application2 = null;
                    application.Visible = true;
                }
            }
            catch (COMException exception1)
            {
                ProjectData.SetProjectError(exception1);
                COMException exception = exception1;
                MessageBox.Show(exception.Message);
                ProjectData.ClearProjectError();
            }
            catch (Exception exception3)
            {
                ProjectData.SetProjectError(exception3);
                Exception exception2 = exception3;
                MessageBox.Show(exception2.Message);
                ProjectData.ClearProjectError();
            }
        }

        private void CmdLoad_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public System.Data.DataTable GetData()
        {
            string str2 = "";
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                str2 = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(" AND HH.KhoaNhom = '", this.CboNhom.SelectedValue), "'"));
            }
            string commandText = " SELECT NH.Ten" + modGeneral.H_LANGUAGE + " As NhomHang, HH.Ma As MaHang, HH.Ten" + modGeneral.H_LANGUAGE + " As TenHang, DVT.Ten" + modGeneral.H_LANGUAGE + " As DonViTinh,  CT.GiaBan As DonGia, Sum(CT.SoLuong) As SoLuong, Sum(CT.TienBan) As ThanhTien  FROM ST_XuatKhoChiTiet CT LEFT JOIN ST_XuatKho XK ON CT.KhoaPhieuXuat = XK.Khoa  LEFT JOIN DM_HangHoa HH ON CT.KhoaHangHoa = HH.Khoa  LEFT JOIN DM_NhomHangHoa NH ON HH.KhoaNhom = NH.Khoa  LEFT JOIN DM_DonViTinh DVT ON HH.KhoaDonViTinh = DVT.Khoa  WHERE (XK.NgayChungTu BETWEEN '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' AND '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "')" + str2 + " AND XK.LoaiBanHang = 'XB' AND (CT.Loai = 'HB'  OR CT.Loai = 'KM') AND XK.GhiSo = 1 GROUP BY NH.Ten" + modGeneral.H_LANGUAGE + ",HH.Ma, HH.Ten" + modGeneral.H_LANGUAGE + ", DVT.Ten" + modGeneral.H_LANGUAGE + ", CT.GiaBan UNION ALL SELECT NH.Ten" + modGeneral.H_LANGUAGE + " As NhomHang, HH.Ma As MaHang, HH.Ten" + modGeneral.H_LANGUAGE + " As TenHang, DVT.Ten" + modGeneral.H_LANGUAGE + " As DonViTinh,  CT.GiaBan As DonGia, -Sum(CT.SoLuong) As SoLuong, -Sum(CT.TienBan) As ThanhTien  FROM ST_NhapKhoChiTiet CT LEFT JOIN ST_NhapKho NK ON CT.KhoaPhieuNhap = NK.Khoa  LEFT JOIN DM_HangHoa HH ON CT.KhoaHangHoa = HH.Khoa  LEFT JOIN DM_NhomHangHoa NH ON HH.KhoaNhom = NH.Khoa  LEFT JOIN DM_DonViTinh DVT ON HH.KhoaDonViTinh = DVT.Khoa  WHERE (NK.NgayChungTu BETWEEN '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' AND '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "')" + str2 + " AND NK.NguonNhap = 'TH'  GROUP BY NH.Ten" + modGeneral.H_LANGUAGE + ",HH.Ma, HH.Ten" + modGeneral.H_LANGUAGE + ", DVT.Ten" + modGeneral.H_LANGUAGE + ", CT.GiaBan  ORDER BY 1, 2";
            return DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptDoanhThuTheoSanPham));
            this.Panel1 = new Panel();
            this.CmdCancel = new System.Windows.Forms.Button();
            this.CboNhom = new ComboBox();
            this.CmdExel = new System.Windows.Forms.Button();
            this.CmdLoad = new System.Windows.Forms.Button();
            this.Label2 = new System.Windows.Forms.Label();
            this.Label16 = new System.Windows.Forms.Label();
            this.Label1 = new System.Windows.Forms.Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label13 = new System.Windows.Forms.Label();
            this.TxtTuNgay = new DateTimePicker();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.Panel3 = new Panel();
            this.TxtTongCong = new C1NumericEdit();
            this.Label23 = new System.Windows.Forms.Label();
            this.AdvKhachHang = new ADVObjects();
            this.Panel1.SuspendLayout();
            this.VSlist.BeginInit();
            this.Panel2.SuspendLayout();
            this.Panel3.SuspendLayout();
            ((ISupportInitialize) this.TxtTongCong).BeginInit();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdCancel);
            this.Panel1.Controls.Add(this.CboNhom);
            this.Panel1.Controls.Add(this.CmdExel);
            this.Panel1.Controls.Add(this.CmdLoad);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.Label16);
            this.Panel1.Controls.Add(this.AdvKhachHang);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.TxtDenNgay);
            this.Panel1.Controls.Add(this.Label13);
            this.Panel1.Controls.Add(this.TxtTuNgay);
            this.Panel1.Dock = DockStyle.Top;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(0x37c, 0x2d);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 70;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x327, 0x13);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x19);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x80;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CboNhom.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhom.FormattingEnabled = true;
            point = new System.Drawing.Point(0x1b9, 20);
            this.CboNhom.Location = point;
            this.CboNhom.Name = "CboNhom";
            size = new Size(0xd4, 0x15);
            this.CboNhom.Size = size;
            this.CboNhom.TabIndex = 0x7f;
            this.CmdExel.Image = (Image) manager.GetObject("CmdExel.Image");
            this.CmdExel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x2d8, 0x13);
            this.CmdExel.Location = point;
            this.CmdExel.Name = "CmdExel";
            size = new Size(0x4f, 0x19);
            this.CmdExel.Size = size;
            this.CmdExel.TabIndex = 0x7e;
            this.CmdExel.Text = "Exel";
            this.CmdExel.UseVisualStyleBackColor = true;
            this.CmdLoad.BackgroundImageLayout = ImageLayout.Center;
            this.CmdLoad.Image = ACCOUNTING.My.Resources.Resources.view;
            this.CmdLoad.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x28f, 0x13);
            this.CmdLoad.Location = point;
            this.CmdLoad.Name = "CmdLoad";
            size = new Size(0x49, 0x18);
            this.CmdLoad.Size = size;
            this.CmdLoad.TabIndex = 0x7d;
            this.CmdLoad.Text = "Xem";
            this.CmdLoad.UseVisualStyleBackColor = true;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x1b6, 4);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x3e, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x7a;
            this.Label2.Text = "Nh\x00f3m h\x00e0ng";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0xac, 4);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x72;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x5b, 4);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x35, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x3f;
            this.Label1.Text = "Đến ng\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new System.Drawing.Point(90, 20);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x53, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x3e;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new System.Drawing.Point(4, 4);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x3d;
            this.Label13.Text = "Từ ng\x00e0y";
            this.TxtTuNgay.Format = DateTimePickerFormat.Custom;
            point = new System.Drawing.Point(5, 20);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x53, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 60;
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new System.Drawing.Point(0, 0x2d);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37c, 490);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x47;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.BackgroundImageLayout = ImageLayout.Stretch;
            this.Panel2.Controls.Add(this.Panel3);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new System.Drawing.Point(0, 0x217);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x37c, 0x1f);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x48;
            this.Panel3.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel3.BackgroundImageLayout = ImageLayout.Stretch;
            this.Panel3.Controls.Add(this.TxtTongCong);
            this.Panel3.Controls.Add(this.Label23);
            this.Panel3.Dock = DockStyle.Right;
            point = new System.Drawing.Point(0x26d, 0);
            this.Panel3.Location = point;
            this.Panel3.Name = "Panel3";
            size = new Size(0x10f, 0x1f);
            this.Panel3.Size = size;
            this.Panel3.TabIndex = 1;
            this.TxtTongCong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongCong.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.5f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.TxtTongCong.FormatType = FormatTypeEnum.StandardNumber;
            point = new System.Drawing.Point(0x74, 6);
            this.TxtTongCong.Location = point;
            this.TxtTongCong.Name = "TxtTongCong";
            Padding padding = new Padding(1);
            this.TxtTongCong.Padding = padding;
            this.TxtTongCong.ReadOnly = true;
            size = new Size(0x8b, 20);
            this.TxtTongCong.Size = size;
            this.TxtTongCong.TabIndex = 0x8b;
            this.TxtTongCong.Tag = null;
            this.TxtTongCong.TextAlign = HorizontalAlignment.Right;
            this.TxtTongCong.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongCong.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongCong.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label23.AutoSize = true;
            this.Label23.BackColor = Color.Transparent;
            this.Label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new System.Drawing.Point(0x1f, 9);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x44, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0x8a;
            this.Label23.Text = "Tổng cộng";
            this.AdvKhachHang.Conditions = "";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new System.Drawing.Point(0xaf, 20);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = false;
            size = new Size(0x108, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 0x71;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 80;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37c, 0x236);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_RptDoanhThuTheoSanPham";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-BH04";
            this.Text = "DOANH THU THEO SAN PHAM";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.VSlist.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel3.ResumeLayout(false);
            this.Panel3.PerformLayout();
            ((ISupportInitialize) this.TxtTongCong).EndInit();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            System.Data.DataTable data = this.GetData();
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Rows.Count = 1;
            int num2 = data.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSlist.AddItem("");
                vSlist[i + 1, 0] = RuntimeHelpers.GetObjectValue(data.Rows[i]["NhomHang"]);
                vSlist[i + 1, 1] = i + 1;
                vSlist[i + 1, 2] = RuntimeHelpers.GetObjectValue(data.Rows[i]["MaHang"]);
                vSlist[i + 1, 3] = RuntimeHelpers.GetObjectValue(data.Rows[i]["TenHang"]);
                vSlist[i + 1, 4] = RuntimeHelpers.GetObjectValue(data.Rows[i]["DonViTinh"]);
                vSlist[i + 1, 5] = RuntimeHelpers.GetObjectValue(data.Rows[i]["SoLuong"]);
                vSlist[i + 1, 6] = RuntimeHelpers.GetObjectValue(data.Rows[i]["DonGia"]);
                vSlist[i + 1, 7] = RuntimeHelpers.GetObjectValue(data.Rows[i]["ThanhTien"]);
            }
            this.TxtTongCong.Value = LVYModule.SumColGrid(this.VSlist, 7);
            vSlist.Tree.Column = 3;
            vSlist.Subtotal(AggregateEnum.Sum, 0, 0, 0, 7, "{0}");
            vSlist = null;
        }

        private void Rpt_DoanhThuTheoSanPham_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
            BuildComboModule.BuildCombo(this.CboNhom, modGeneral.ListDanhMuc.NhomHangHoa, true, "", "");
            this.LoadData();
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual ComboBox CboNhom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboNhom = value;
            }
        }

        internal virtual System.Windows.Forms.Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdExel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExel_Click);
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click -= handler;
                }
                this._CmdExel = value;
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdLoad
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdLoad;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdLoad_Click);
                if (this._CmdLoad != null)
                {
                    this._CmdLoad.Click -= handler;
                }
                this._CmdLoad = value;
                if (this._CmdLoad != null)
                {
                    this._CmdLoad.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual Panel Panel3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel3 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual C1NumericEdit TxtTongCong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongCong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongCong = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSlist = value;
            }
        }
    }
}

